package com.xuecheng.content.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.content.model.dto.TeachPlanDto;
import com.xuecheng.content.model.po.CourseTeacher;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * <p>
 * 课程-教师关系表 服务类
 * </p>
 *
 * @author itcast
 * @since 2023-02-11
 */
public interface CourseTeacherService extends IService<CourseTeacher> {


    /**
     * 根据课程id查询课程计划
     * @param courseId
     * @return
     */
    List<TeachPlanDto> findTeachPlanTree(Long courseId);

    /**
     * 根据课程id查询所有教师信息
     * @param courseId
     * @return
     */
    List<CourseTeacher> getCourseTeacherList(Long courseId);

    /**
     * 新增修改教师信息
     * @param courseTeacher
     * @return
     */
    List<CourseTeacher> saveCourseTeacher(@RequestBody CourseTeacher courseTeacher);

    /**
     * 删除与课程计划相关的老师
     * @param courseId
     * @param teacherId
     */
    void deleteCourseTeacher(Long courseId, Long teacherId);
}
